﻿@model VehicleManagement.Models.Approval
@{
    ViewBag.Title = "PathMapDetail";
}
<script type="text/javascript">
//    $(function () {
//        $("#ConfirmPathMap").click(function () {
//            $.post("/Approval/ConfirmPathMap/", {
//                id: @Model.ApprovalID
//            }, function (data, status) {
//                alert(data.Message);
//            });
//        });
//    });
</script>
<h2>PathMapDetail</h2>

<p>起点：@Html.DisplayFor(model => model.Beginning)</p>
<p>终点：@Html.DisplayFor(model => model.Destination)</p>
@if(!@Model.PathConfirm)
{
    <input type="button" value="确认路线" id="ConfirmPathMap" />
}
<br />
<img src="/Approval/GetPathMap/@Model.ApprovalID" />